package com.itheima.thread.常用方法.demo1;

public class Demo {
    //线程是有默认名字的,格式是 Thread-编号
    public static void main(String[] args) {
        Thread t1 = new MyThread();
        Thread t2 = new MyThread("第二个线程");
        t1.setName("第一个线程");

        t1.start();
        t2.start();
    }
}
